using System;
using UnityEngine;
using UnityEngine.UIElements;

public class GameOverPanel : MonoBehaviour
{
    private Button backToStartButton;

    public ObjectEventSO LoadMenuEvent;
    private void OnEnable()
    {
        GetComponent<UIDocument>().rootVisualElement.Q<Button>("WakeUpButton").clicked += OnWakeUpButtonClicked;
    }

    private void OnWakeUpButtonClicked()
    {
        LoadMenuEvent.RaisEvent(null,this);
    }
}
